package com.idealighter.game.mail.convert;

import com.idealighter.game.core.convert.DateLongConvert;
import com.idealighter.game.mail.dto.MailDto;
import com.idealighter.game.server.db.datadb.generate.domain.MailDomain;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = DateLongConvert.class)
public interface MailConvert {
  MailConvert INSTANCE = Mappers.getMapper(MailConvert.class);

  MailDto toMailDto(MailDomain domain);

  List<MailDto> toMailDtos(List<MailDomain> domains);
}
